/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */
package cn.ex;

/**
 * <p>Project: jse2302 - Cdemo
 * <p>Powered by webrx On 2023-06-16 09:47:29
 * <p>Created by IntelliJ IDEA
 *
 * @author  webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Cdemo {
    public static void main(String[] args) {
        //System.out.printf("%tF %<tT %n",new C());

        //Book book = new JavaBook();
        //System.out.println(book.lf(3));
        //
        //GoBook b = new GoBook();
        //System.out.println(b.lf(9));

        //DbUtil my = new MySQLUtil();
        //DbUtil oa = new OracleUtil();
        //save(my);
        //会自动生成内部匿名类  Cdemo.class Cdemo$1.class
        DbUtil du = new DbUtil() {
            @Override
            public void connect(String str) {

            }

            @Override
            public void delete(int id) {

            }

            @Override
            public void save() {

            }

            @Override
            public void query() {

            }
        };


    }

    public static void save(DbUtil du){
        du.connect("aa");
    }
}
